# 打开windows快捷方式

import time

from xqol_login.open_game_utils import do_open_game_window, do_login_game

desktop_path = "C:\\Users\\hujun\\Desktop\\xqol_2560x1440_100\\xqolxz"
# 等待打开的账号
account_list = [

    { "window_title": "xqApp hujun6",  "link_name": "hujun6 血战、氤氲", "x": 310*0 + 7, "y": 0 },
    { "window_title": "xqApp hujun8", "link_name": "hujun8 血战、蘩藜", "x": 310*1 + 7, "y": 0 },
    { "window_title": "xqApp hujun9", "link_name": "hujun9 血战、玉漱", "x": 310*2 + 7, "y": 0 },
    { "window_title": "xqApp hujun20", "link_name": "hujun20 血战、忧忆", "x": 310*3 + 7, "y": 0 },
    { "window_title": "xqApp hujun21", "link_name": "hujun21 血战、记忆", "x": 310*4 + 7, "y": 0 },
    { "window_title": "xqApp hujun22", "link_name": "hujun22 血战、失忆", "x": 310*5 + 7, "y": 0 },
    { "window_title": "xqApp xqolxz1", "link_name": "xqolxz1 血战、遁甲", "x": 310*6 + 7, "y": 0 },
    { "window_title": "xqApp xqolxz2", "link_name": "xqolxz2 血战、琴魔", "x": 310*7 + 7, "y": 0 },

    { "window_title": "xqApp xqolxz3", "link_name": "xqolxz3 血战、幽冥", "x": 310 * 0 + 7, "y": 473 },
    { "window_title": "xqApp xqolxz4", "link_name": "xqolxz4 血战、猛士", "x": 310 * 1 + 7, "y": 473 },
    { "window_title": "xqApp xqolxz5", "link_name": "xqolxz5 血战、天音", "x": 310 * 2 + 7, "y": 473 },
    { "window_title": "xqApp xqolxz6", "link_name": "xqolxz6 血战、罗刹", "x": 310 * 3 + 7, "y": 473 },

]
# 打开游戏
my_game_windows = do_open_game_window(desktop_path, account_list)
print(my_game_windows)
# 登录游戏 耐心等待会，电脑性能不行的话
time.sleep(10)
do_login_game(account_list)
# 去百战千军报名
#go_to_npc_bai_zhan_qian_jun(my_game_windows)